package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 仓库收款单
 * </p>
 *
 * @author LEO
 * @since 2020-11-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wms_receipt")
@ApiModel(value="Receipt对象", description="仓库收款单")
public class Receipt extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收款单号")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构",hidden = true)
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "仓库标识")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "入驻商")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "收款金额")
    @TableField("amount_collected")
    private BigDecimal amountCollected;

    @ApiModelProperty(value = "审核意见")
    @TableField("verify_opinion")
    private String verifyOpinion;

    @ApiModelProperty(value = "审核时间")
    @TableField("gmt_verify")
    private LocalDateTime gmtVerify;

    @ApiModelProperty(value = "审核人")
    @TableField("verify_by")
    private String verifyBy;

    @ApiModelProperty(value = "审核人姓名")
    @TableField("verify_name")
    private String verifyName;

    @ApiModelProperty(value = "状态:0新建、1待审核、2审核通过、3审核不通过")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;


    @ApiModelProperty(value = "结算明细")
    @TableField(exist = false)
    private List<ReceiptItem> receiptItemList;

}
